<template>
  <div>
    <h2>电影列表</h2>
    <p>count组件中的count值是:{{ count }}</p>
    <button @click="getMovieList">点击获取电影列表</button>
    <ul>
      <li v-for="item in movieList" :key="item.tvId">{{ item.name }}</li>
    </ul>
  </div>
</template>

<script>
import { mapActions ,mapState } from 'vuex'
export default {
    name:"Movie",
        computed:{
      ...mapState(["count","movieList"]),
    },
    methods: {
      ...mapActions(["getMovieList"])
    },
}
</script>

<style scoped>

</style>